package cn.edu.gzhu.workOrderManagement.constants;

/**
 * 包含正则表达式的常量类
 * @author chen xi
 */

public class RegexConstant {
    //密码必须包含数字和英文大小写和特殊字符，且长度在6-18位之间
    public static final String PASSWORD = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@!%*?&])[A-Za-z\\d@!%*?&]{6,18}$";

    //用户名4-16位，允许字母数字下划线和减号
    public static final String USERNAME = "^[\\w-]{3,16}$";

    //组织名，暂未规定
    public static final String ORGANIZATION_NAME = ".+";

    //身份证
    public static final String ID_CARD = "^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])\\d{3}(\\d|X|x)$";

    public static final String WORK_ORDER_TYPES = "^(普通工单|重诉工单|材料处理工单)$";

    public static final String USER_AUTHORITY =
    "^(ADMIN|HEAD_LEADER|HEAD_BUSINESS|HEAD_AUDITORS|BRANCH_LEADER|BRANCH_SUPERVISOR|BRANCH_BUSINESS|BRANCH_WORK_HANDLER|BRANCH_AUDITORS|BRANCH_MATERIAL_HANDLER)$";

    public static final String WORK_ORDER_FOLLOWING_STATUS = "^(待跟进|已跟进|已完成)$";
}
